Expose LocalAccessor as kernel argument type#1991
Conversation
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
|
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_518 ran successfully. |
|
Array API standard conformance tests for dpctl= ran successfully. |
|
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_540 ran successfully. |
ff43ac7 to
e1e4b00
Compare
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_11 ran successfully. |
e1e4b00 to
949571b
Compare
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_11 ran successfully. |
949571b to
f35e483
Compare
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_11 ran successfully. |
…uments LocalAccessor(ndim, elemental_type_str, dim0, dim1, dim2) The elemental type can be one of the following: "i1", "u1", "i2", "u2", "i4", "u4", "i8", "u8", "f4", "f8"
Fixes conflict with built-in `type`
Also improve messages in errors
f35e483 to
5fc86c6
Compare
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_41 ran successfully. |
…parate integer arguments Update test for LocalAccessor kernel submission
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_42 ran successfully. |
vtavana
left a comment
There was a problem hiding this comment.
Thank you, @ndgrigorian, for finalizing it!
Also slips in a fix to the shape of the local_accessor
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_45 ran successfully. |
This PR adds
_md_local_accessorCython struct in_backend.pxdthat ties toMDLocalAccessorstruct defined in libsyclinterface, and which is to be used to indicate local_accessor kernel argument type (see test file in syclinterface library)._sycl_queue.pyxthen definesLocalAccessortype, constructible usingLocalAccessor(ndim, typestr, dim0, dim1, dim2)constuctor. Thendimargument represents accessor dimensionality (only values 1, 2, or 3 are supported). Thetypestrcan be"i1","u1","i2","u2","i4","u4","i8","u8","f4", or"f8".